package com.liruo.treasureattic.common.model.dto.user;

import com.liruo.treasureattic.common.model.constant.TreasureAtticConstant;
import com.liruo.treasureattic.common.model.enume.GenderEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author:liruo
 * @Date:2022-11-15-23:17:53
 * @Desc  email+code(可以设置pwd，但还是需要邮箱验证)
 */
@ApiModel("注册对象")
@Data
public class UserRegisterReq implements Serializable {
    /**
     * 4-16
     */
    private String username;
    /**
     * 8-64
     */
    private String pwd;

    @ApiModelProperty("文件和url二选一，都没有就默认")
    private MultipartFile avatar;
    @ApiModelProperty("文件和url二选一，都没有就默认")
    private String avatarUrl;
    @ApiModelProperty("性别:0-男,1-女")
    private GenderEnum gender;

    private String email;
    private String code;
    @Serial
    private static final long serialVersionUID = TreasureAtticConstant.TREASURE_ATTIC_VERSION;
}
